﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows;

namespace WpfWordsLearner.Model
{
	public class TestWordModel : DependencyObject
	{
		public WordsModel Word
		{
			get { return (WordsModel)GetValue(WordProperty); }
			set { SetValue(WordProperty, value); }
		}

		// Using a DependencyProperty as the backing store for Word.  This enables animation, styling, binding, etc...
		public static readonly DependencyProperty WordProperty =
			DependencyProperty.Register("Word", typeof(WordsModel), typeof(TestWordModel), new PropertyMetadata(null));


		public bool IsCorrect
		{
			get { return (bool)GetValue(IsCorrectProperty); }
			set { SetValue(IsCorrectProperty, value); }
		}

		// Using a DependencyProperty as the backing store for IsCorrect.  This enables animation, styling, binding, etc...
		public static readonly DependencyProperty IsCorrectProperty =
			DependencyProperty.Register("IsCorrect", typeof(bool), typeof(TestWordModel), new PropertyMetadata(false));


		public string Answer
		{
			get { return (string)GetValue(AnswerProperty); }
			set { SetValue(AnswerProperty, value); }
		}

		// Using a DependencyProperty as the backing store for Answer.  This enables animation, styling, binding, etc...
		public static readonly DependencyProperty AnswerProperty =
			DependencyProperty.Register("Answer", typeof(string), typeof(TestWordModel), new PropertyMetadata(string.Empty));

	}
}
